package com.atguigu.jxc.service;

import com.atguigu.jxc.domain.ServiceVO;
import com.atguigu.jxc.entity.Goods;
import com.atguigu.jxc.entity.GoodsTypeVO;

import java.util.List;
import java.util.Map;

public interface GoodsService {


    ServiceVO getCode();

    Map<String, Object> listInventory(Integer page, Integer rows, String codeOrName, Integer goodsTypeId);

    Map<String, Object> getUnitList();

    Map<String, Object> queryGoodsList(Integer page, Integer rows, String goodsName, Integer goodsTypeId);

    List<GoodsTypeVO> loadGoodsType();

    boolean saveGoodsType(String goodsTypeName, Integer pId);

    boolean deleteGoodsType(Integer pId);

    boolean saveGoods(Goods goods);

    boolean deleteGoods(Integer goodsId);

    Map<String, Object> getNoInventoryQuantity(Integer page, Integer rows, String nameOrCode);

    Map<String, Object> getHasInventoryQuantity(Integer page, Integer rows, String nameOrCode);

    boolean saveStock(Integer goodsId, Integer inventoryQuantity, double purchasingPrice);

    boolean deleteStock(Integer goodsId);

    Map<String, Object> listAlarm();
}
